package com.ruoyi.business.mapper;

import com.ruoyi.business.domain.BusAttachment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
*内容: 
*作者: cy
*/   
    
   
@Mapper
public interface BusAttachmentMapper {
    int deleteByPrimaryKey(Integer fileId);

    int insert(BusAttachment record);

    int insertSelective(BusAttachment record);

    BusAttachment selectByPrimaryKey(Integer fileId);

    int updateByPrimaryKeySelective(BusAttachment record);

    int updateByPrimaryKey(BusAttachment record);

    /**
     * 批量插入图片表
     *
     * @param busAttachments
     */
    int saveBatch(@Param("busAttachments") List<BusAttachment> busAttachments);

    /**
     * 根据车牌号查询该车辆的图片集合
     *
     * @param carNumber
     * @return
     */
    List<String> selectListByCarNum(String carNumber);

    /**
     * 删除车辆的原始图片
     *
     * @param carNumber
     */
    int delImgByCarNum(@Param("carNumber") String carNumber, @Param("username") String username);

    /**
     * 批量修改图片状态
     *
     * @param carNums
     * @param username
     */
    int delImgByCarNumBatch(@Param("carNums") List<String> carNums, @Param("username") String username);

    List<String> selectImgListByCarNumber(String carNumber);
}

